authApp.value('page','datafill'); 
authApp.controller("dataFillController",function($scope,$http,$cookieStore,$cookies){
	var rJson={}
	$http({
			method:'post',
			url:apis.queryAllBaseData,
			data:rJson,
		}).success(function(response){
			if(response.data.runningData==""){
				$scope.runningDataURL="datefill/datafill_makeschool.html?isfill=0";
				$scope.runningDataDec="填报";
			}else if(response.data.runningData=="0"){
				$scope.runningDataURL="datefill/datafill_makeschool.html?isfill=1";
				$scope.runningDataDec="修改并提交";
			}else{
				$scope.runningDataURL="datefill/datafill_makeschool.html?isfill=2";
				$scope.runningDataDec="已经填报";
			}
			if(response.data.studentData==""){
				$scope.studentDataURL="datefill/datafill_student.html?isfill=0";
				$scope.studentDataDec="填报";
			}else if(response.data.studentData=="0"){
				$scope.studentDataURL="datefill/datafill_student.html?isfill=1";
				$scope.studentDataDec="修改或提交";
			}else{
				$scope.studentDataURL="datefill/datafill_student.html?isfill=2";
				$scope.studentDataDec="已经填报";
			}
			if(response.data.teacherData==""){
				$scope.teacherDataURL="datefill/datafill_teacher.html?isfill=0";
				$scope.teacherDataDec="填报";
			}else if(response.data.teacherData=="0"){
				$scope.teacherDataURL="datefill/datafill_teacher.html?isfill=1";
				$scope.teacherDataDec="修改或提交";
			}else{
				$scope.teacherDataURL="datefill/datafill_teacher.html?isfill=2";
				$scope.teacherDataDec="已经填报";
			}
			if(response.data.resourceData==""){
				$scope.resourceDataURL="datefill/datafill_source.html?isfill=0";
				$scope.resourceDataDec="填报";
			}else if(response.data.resourceData=="0"){
				$scope.resourceDataURL="datefill/datafill_source.html?isfill=1";
				$scope.resourceDataDec="修改或提交";
			}else{
				$scope.resourceDataURL="datefill/datafill_source.html?isfill=2";
				$scope.resourceDataDec="已经填报";
			}
			if(response.data.teachResourceData==""){
				$scope.teachResourceDataURL="datefill/datafill_teach.html?isfill=0";
				$scope.teachResourceDataDec="填报";
			}else if(response.data.teachResourceData=="0"){
				$scope.teachResourceDataURL="datefill/datafill_teach.html?isfill=1";
				$scope.teachResourceDataDec="修改或提交";
			}else{
				$scope.teachResourceDataURL="datefill/datafill_teach.html?isfill=2";
				$scope.teachResourceDataDec="已经填报";
			}
			if(response.data.momeyResourceData==""){
				$scope.momeyResourceDataURL="datefill/detail_money.html?isfill=0";
				$scope.momeyResourceDataDec="填报";
			}else if(response.data.momeyResourceData=="0"){
				$scope.momeyResourceDataURL="datefill/detail_money.html?isfill=1";
				$scope.momeyResourceDataDec="修改或提交";
			}else{
				$scope.momeyResourceDataURL="datefill/detail_money.html?isfill=2";
				$scope.momeyResourceDataDec="已经填报";
			}
		}).error(function(){
			alert("服务器打瞌睡了，请稍等！");
		})
})